<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8" />
		<title>4.v-pre</title>
		<!-- 引入Vue -->
		<script type="text/javascript" src="../js/vue.js"></script>
	</head>
	<body>
		<!-- 准备好一个容器-->
		<div id="demo">
			<div>
				<div v-pre>
					<h2>你好啊1</h2>
					<h2>你好啊2</h2>
					<p>你好啊3</p>
				</div>
				<p>{{school}}</p>
				<button @click="test">点我</button>
			</div>
		</div>

		<script type="text/javascript">
			new Vue({
				el:'#demo',
				data:{
					school:'尚硅谷'
				},
				methods:{
					test(){
						alert(666)
					}
				}
			})
		</script>
	</body>
</html>